package com.yc.study.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yc.study.entity.Reply;
import com.yc.study.mapper.ReplyMapper;
import com.yc.study.service.IReplyService;
import com.yc.study.vo.ReplyVo;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 服务实现类
 *
 * @author 王妍
 * @since 2022-02-20
 */
@Service
@AllArgsConstructor
public class ReplyServiceImpl extends ServiceImpl<ReplyMapper, Reply> implements IReplyService {
  private final ReplyMapper replyMapper;

  @Override
  public List<ReplyVo> loadPageVo(Page<ReplyVo> page, Long answerId) {
    return replyMapper.loadPageVo(page, answerId);
  }
}
